package com.pkk.penguin.components.starter.rpc.crypto.properties;

import com.pkk.penguin.components.starter.rpc.crypto.annotation.SecretType;
import com.pkk.penguin.components.starter.rpc.crypto.constants.CommonConstants;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author luffy
 * @date 2019-11-15 15:10
 */
@Data
@ConfigurationProperties(prefix = CommonConstants.SECRET_PROPERTIES_PREFIX)
public class SecretProperties {

  /**
   * 是否开启
   */
  private boolean enabled = false;

  /**
   * 是否扫描注解
   */
  private boolean scanAnnotation = false;

  /**
   * 加密解密方式
   */
  private SecretType secretType;


  private RsaProperties rsa;


}
